<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title><BOM.浏览器对象模型</title>
	</head>
	<body>
		<script>
			var area='湖南';
			function getArea () {
				// return this.area;
				return this;
				
				
			}
			console.log(area);
			//document.write(window.area);
			console.log(window.area);
			console.log(getArea());
			console.log(window.getArea());
			console.log(window.Number(area));//显示NaN
			
		
			
			

			// var str=window.prompt('请输入您要查找的内容:')
			// 	document.write(str)

			// window.alert('bugyellow');
		
		
		</script>
	</body>
</html>
